package cn.js.sangu.unitStore.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 官网留言记录表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("website")
public class Website {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @Alias("信息源")
    private String infoSource;

    @Alias("公司名称")
    private String companyName;

    @Alias("联系人姓名")
    private String contactName;

    @Alias("联系人电话")
    private String contactPhone;

    @Alias("联系人留言")
    private String contactMessage;

    @Alias("状态")
    private String state;

    @Alias("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date creatTime;

    @Alias("备注")
    private String remark;


}
